package com.mcc.app.group.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 排班计划对象 group_sche
 *
 * @author gxy
 * @date 2021-07-08
 */
@ApiModel("排班计划对象")
@Data
public class GroupSche implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId
    @ApiModelProperty("ID")
    private Long scheId;

    @JsonFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty("排班日期")
    private Date scheDate;

    @ApiModelProperty("班次ID")
    private Long classesId;

    @ApiModelProperty("班次")
    @TableField(exist = false)
    private GroupClasses classes;

    @TableField(exist = false)
    private String classesName;

    @TableField(exist = false)
    private String classesCode;

    @ApiModelProperty("班组ID")
    private Long teamId;

    @ApiModelProperty("班组")
    @TableField(exist = false)
    private GroupTeam team;

    @TableField(exist = false)
    private String teamName;

    @TableField(exist = false)
    private String teamCode;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty("开始时间")
    private Date startDt;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty("结束时间")
    private Date endDt;

    @ApiModelProperty("查询开始日期")
    @TableField(exist = false)
    private String searchStartDate;

    @ApiModelProperty("查询结束日期")
    @TableField(exist = false)
    private String searchEndDate;

}
